<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      template="./plantilla/plantilla.xhtml">
     

        <ui:define name="center">
            <div class="h_title">Configuracion de Parametros</div>
            <h:form id="form">
            <div align="center" style="background-color: white" >
                    <p:growl id="growl" showDetail="true"  />
                    <p:panel id="panellista" style="font-size:small;margin: auto">    
                    <h:panelGrid id="paneleditar" columns="2" cellpadding="4" >
                        <h:outputLabel value="Tamaño de la Poblacion:"  styleClass="colum"/>
                        <p:inputText 
                            value="#{constantes.tamanoPoblacion}"
                                    required="true" >
                            <f:validateLength minimum="1"/>
                        </p:inputText>
                        
                        <h:outputLabel value="Cantidad de Iteraciones:"  styleClass="colum"/>
                        <p:inputText 
                            value="#{constantes.cantIteracion}"
                                    required="true" >
                            <f:validateLength minimum="1"/>
                        </p:inputText>
                        
                        <h:outputLabel value="Pc:"  styleClass="colum"/>
                        <p:inputText 
                            value="#{constantes.probCruzamiento}"
                                    required="true" >
                            <f:validateLength minimum="1"/>
                        </p:inputText>
                        
                        <h:outputLabel value="Pm:"  styleClass="colum"/>
                        <p:inputText 
                            value="#{constantes.probMutacion}"
                                    required="true" >
                            <f:validateLength minimum="1"/>
                        </p:inputText>
                        
                        <h:outputLabel value="MaxHorasConsxDia:"  styleClass="colum"/>
                        <p:inputText 
                            value="#{constantes.horasMaxClaseConsXDia}"
                                    required="true" >
                            <f:validateLength minimum="1"/>
                        </p:inputText>
                        
                        <h:outputLabel value="MaxHorasClasexDia:"  styleClass="colum"/>
                        <p:inputText 
                            value="#{constantes.horasMaxClaseTotalXDia}"
                                    required="true" >
                            <f:validateLength minimum="1"/>
                        </p:inputText>
                        </h:panelGrid>
                        <p:panelGrid columns="1">
                            <p:commandButton id="botoneditar" value="Guardar"                                       
                                         ajax="true"
                                         update=":form:growl"
                                         style="font-size: 10px"
                                         actionListener="#{constantes.guardar()}"
                                         >
                            
                        </p:commandButton> 
                        </p:panelGrid>
                             
                    
                    </p:panel>    
            </div>
            </h:form>     
                       
	</ui:define>
</ui:composition>

